Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.6k Posts
  • What is happening with forum post entry screen?

    Unsolved
    12
    0 Votes
    12 Posts
    859 Views
    Chris KawaC
    I do object to the sermons. It is getting tiresome. Likewise, lecturing others like that is no fun. I would rather not :/ You can all object to my style , but it is no business of yours. It is, as your style directly impacts us and others. You are not living in vacuum.
  • This topic is deleted!

    Moved Unsolved
    1
    0 Votes
    1 Posts
    19 Views
    No one has replied
  • Performance between Qt widget application and QML application

    Unsolved
    2
    0 Votes
    2 Posts
    134 Views
    SGaistS
    Hi, I am not aware of such benchmarks. You have to define exactly what you want to achieve and then do some tests.
  • Couple of strange errors. MSVS2019 + CMake + Qt

    Solved qt 6 msvc2019 cmake errors
    2
    0 Votes
    2 Posts
    576 Views
    DrugsAsLifestyleD
    Fixed. This errors was because of Qt 6. I downloaded and linked previous version of QT - 5.15, and this errors disappeared
  • How to enter Logical expression in QLineEdit with QCompleter?

    Solved qt5
    4
    0 Votes
    4 Posts
    398 Views
    S
    solved the problem by adding self.end_index = len(self.existing_txt) in pathFromIndex after getting the text value from QLineEdit
  • 0 Votes
    15 Posts
    5k Views
    JonBJ
    @n-2204 Please try to format your posts readably. For lines of code use the Code tag when posting, or but lines of 3-backticks above & below. You are also now asking this same question in a new thread you have created (https://forum.qt.io/topic/125774/qtableview-how-to-make-noneditable-column). You should stick to one thread, not create multiple ones. where i should give like it will be applicable for table1 or table2 I don't know what you mean. To use the flags() approach you must sub-class QStandardItemModel, which I assume is what your GAS_tool is, else this will have no effect. If you want to use the setFlags() approach, you do not need to sub-class, but must set the flags explicitly on each item which is to be non-editable. I also wrote this in your other thread.
  • warning QToolbar::actionTriggered is not a signal[crazy-connect-no-signal]

    Unsolved
    3
    0 Votes
    3 Posts
    262 Views
    E
    @mrjj Maybe it‘s a bug for the Qt 6.0
  • Proper way to make a cmake project (pri) dependent on another cmake project (pri)

    Solved
    2
    0 Votes
    2 Posts
    151 Views
    fcarneyF
    My paths were relative to a cd. This messed things up.
  • 0 Votes
    12 Posts
    12k Views
    N
    @sayan275 Not clear why, but I think this does what you need: set the keyboardTracking property of the spinbox to false, then do the following: void MainWindow::on_mySpinBox_valueChanged(int arg1) { on_mySpinBox_editingFinished(); } void MainWindow::on_mySpinBox_editingFinished() { // what you need to be done, on spinbox loosing focus or arrows adjusting (and not while editing) }
  • 0 Votes
    10 Posts
    756 Views
    jeremy_kJ
    @Inhahe said in How can I do something when the user clicks on a particular span/frame/block/fragment/whatever of text in a QTextEdit?: here's my code: def addmsg(textedit, nick, message): if config.show_timestamp: obj_now = datetime.now() textedit.insertPlainText(f"[{obj_now.hour: >2}:{obj_now.minute: >2}] ") textedit.insertPlainText("<") #textedit.insertHtml(f'<a href="{nick}">{nick}</a>') #doesn't work right, bug in qt charFormat = QTextCharFormat() charFormat.setAnchorHref(nick) textedit.textCursor().insertText(nick, charFormat) textedit.insertPlainText("> ") colorify(textedit, message) textedit.insertHtml("<br>") both the QTextCharFormat approach and the insertHtml approach (commented out in the above) result in the link extending all the way to the end of the line, which it seems it shouldn't. Just posting it in case you happen to have any insight; I expect I'll have to figure this out myself ;/ Using textedit.insertHtml(f'<a href="{nick}">{nick}</a>&gt;') rather than adding > as plain text fixes the issue for me with Qt 5.15.2 and PyQt 5.15.3. I haven't tried using the QTextCharFormat method.
  • QGlib::Value::set: Unable to handle value type "gchararray".

    Unsolved
    1
    0 Votes
    1 Posts
    143 Views
    No one has replied
  • How to achieve a blurred background

    Solved
    6
    0 Votes
    6 Posts
    7k Views
    S
    @Chris-Kawa Hi, can you post a small example to get this feature please? Or can you tell me where I should go to look for more about that? Thank you
  • Converting image to RGB16 in array

    Unsolved
    6
    0 Votes
    6 Posts
    390 Views
    SGaistS
    Never done what ?
  • How to link (FTDI)d2xx library to qt project?

    Unsolved
    2
    0 Votes
    2 Posts
    416 Views
    SGaistS
    Hi, If using Qt Creator, you have a wizard to help you.
  • MDI Area Ghosting

    Unsolved
    1
    0 Votes
    1 Posts
    171 Views
    No one has replied
  • Get the correct date days passed after current date

    Solved
    9
    0 Votes
    9 Posts
    912 Views
    HolidayH
    @JonB Thanks for help. Yes, the main question in my problem was: what we mean by "days". 24 hour or days between midnight. When I found an answer on this question, I found a solution. Huge thanks everyone for help!
  • Instantiate a constructor with QObject *objectParent as the default parameter?

    Solved
    4
    0 Votes
    4 Posts
    295 Views
    C
    There we go, got it to work now by adding = nullptr to the TestClass constructor like this: TestClass(QObject * objectParent = nullptr) Thanks so much.
  • QSerialPort can't handle custom baud rate of 500K??

    Unsolved
    9
    0 Votes
    9 Posts
    666 Views
    E
    The problem was with my Arduino code. I have modified it and it now works even at 500K baud rate!
  • This topic is deleted!

    Unsolved
    3
    0 Votes
    3 Posts
    18 Views
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    16 Views