Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • QFormLayout with QLineEdit which has clear button, size problem

    Unsolved
    2
    0 Votes
    2 Posts
    434 Views
    jronaldJ
    By setting both min width and max width of QLineEdit, the problem is solved. However, what is the proper way?
  • Weird drawPath problem

    Solved
    6
    0 Votes
    6 Posts
    602 Views
    SGaistS
    @Landolfi said in Weird drawPath problem: Comes out there was an uninitialized variable that prevent drawing. It seems that IDE always initializes memory with some value. Hi, No, the IDE as nothing to do with that. If you don't explicitly initialize your variables with a value, they will contain garbage that may or may not have any sense.
  • This topic is deleted!

    Locked Unsolved
    2
    0 Votes
    2 Posts
    10 Views
  • Issues with QFormBuilder - All properties modified & Invalid UI

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    hhslepickaH
    Just to update the message here in this thread, the discussion if this should be considered a bug or not is being carried at the Qt Developers mailing list. Your input on the subject would be appreciated since part of developers think that the method should not be used and the other part agrees that it is a bug.
  • Second ui slots not working

    Solved
    13
    0 Votes
    13 Posts
    473 Views
    U
    @aha_1980 thanks, I just didn't know how to convert that.
  • Button shortcut autorepeat

    Unsolved
    1
    0 Votes
    1 Posts
    201 Views
    No one has replied
  • QLineEdit autofill

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    N
    i still have problem with numbers containing a number using the method: fixup2(QString &input). 1,2e-07 0,00012 those that contain a comma. case 'n': case 'N': input=locale().toString(baseNumber/1000000.0); break; **"120n"**results in "0,00012" and doesn't work. **"10n"**results in "1e-05" and does work. no calculatiion takes place. if(ui->lineEdit_1.toFloat() == 0.0){ QMessageBox::information(this, "empty","",QMessageBox::Ok); } this gets triggered.
  • connect to a signal

    Solved
    8
    0 Votes
    8 Posts
    545 Views
    V
    @jsulm Thanks a lot for your feedback! That's fixed
  • 0 Votes
    3 Posts
    217 Views
    mrjjM
    Hi Just as a note external library which expects window handle. So it all comes down to if that library is available on other platforms.
  • Memory managment - global object

    Solved
    4
    0 Votes
    4 Posts
    253 Views
    D
    Global object is defined in shared library (language: C). Maybe that's the reason.
  • QT 5.12.5 seems not emit serialPort readyRead event

    Unsolved
    3
    0 Votes
    3 Posts
    369 Views
    B
    @JonB thank you for reply , I rolled back to 5.12.4 , it is fine.
  • Opening a unique serial device

    Solved
    3
    0 Votes
    3 Posts
    303 Views
    V
    Thank you @jsulm , that's fixed.
  • qtreeview item text too long

    Unsolved
    15
    0 Votes
    15 Posts
    3k Views
    JonBJ
    @user4592357 I don't know, have you tried it? Does the resize for text not respect your shortened text returned from displayText()?
  • How can I retrieve the default 'selection-background-color' from a combobox

    Unsolved
    2
    0 Votes
    2 Posts
    744 Views
    VRoninV
    You can use QWidget::palette() to retrieve the palette and then use https://doc.qt.io/qt-5/qpalette.html#brush
  • Get output stream from QProcess

    Solved
    21
    0 Votes
    21 Posts
    9k Views
    JonBJ
    @t0msk As I said many times apt update is only example, and if you use pkexec it will show system popup like on screenshot ... @jsulm has leapt to my defence :) And as I have said many times, my question is not about apt update but about why you need to run it or anything else sudo from your program? This equally applies if you go pkexec (though the whole point of that is it's part of polkit, and the point of polkit is that you are supposed to configure it so that it does not "show system popup like on screenshot").
  • The QLineEdit::setValidator can't stop QIntValidator Top Value when user input?

    Solved
    3
    0 Votes
    3 Posts
    441 Views
    X
    @VRonin I read your links. And it works. Thank you very much.
  • long polling in QT client application

    Unsolved
    1
    0 Votes
    1 Posts
    321 Views
    No one has replied
  • The ProgressBar doesnt close Properly

    Unsolved
    3
    0 Votes
    3 Posts
    201 Views
    jsulmJ
    @sankarapandiyan said in The ProgressBar doesnt close Properly: popup_progress->setValue(popup_progress->value()+1); int value = popup_progress->value() + 1; popup_progress->setValue(value); Why do you set the value twice?! Lets say popup_progress->value() is 99, then: popup_progress->setValue(popup_progress->value()+1); // here you set it to 100 int value = popup_progress->value() + 1; // value is 101 now popup_progress->setValue(value); // you set 101 here So, value is never 100 in my example!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    -2 Votes
    1 Posts
    6 Views
    No one has replied