kjiu 0 Newbie Poster

Hello,

I have a problem :icon_confused: which is:

public void caseUpper()
	    {
	        QTextCursor cursor(textCursor());
	        String selTxt(cursor.selectedText());
	        if(selTxt.isEmpty())
	        {
	            return;
	        }
	        String txt = selTxt.toUpperCase();
	        insertPlainText(txt);
	    }

	    public void caseLower()
	    {
	        QTextCursor cursor(textCursor());
	        String selTxt(cursor.selectedText());
	        if(selTxt.isEmpty()) {
	            return;
	        }
	        String txt = selTxt.toLowerCase();
	        insertPlainText(txt);
	    }

I think the problem is that a I'm writing at c++ and java

Kjiu