Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Is it possible to make the size of a text in a QStatusBox bigger?

    Unsolved
    2
    0 Votes
    2 Posts
    171 Views
    raven-worxR
    @developer_96 statusBar->setFont(...)
  • Read Data From URL

    Solved
    20
    0 Votes
    20 Posts
    2k Views
    jsulmJ
    @Ketan__Patel__0011 said in Read Data From URL: But My Library Is Qt Based That is clear. But without Qt event loop Qt networking isn't going to work. You could execute networking part (from your DLL) in a thread with Qt event loop.
  • Any stylesheet for clear button of qlineedit?

    Unsolved
    3
    0 Votes
    3 Posts
    955 Views
    JonBJ
    @JoeCFD Unless you find better: I do not see from published docs that you can affect the inbuilt "clear" button from stylesheet. Only if you replaced it with your own icon in code can you alter it.
  • I want to show a variable in the QStatusBar after calling a funtion

    Unsolved
    4
    0 Votes
    4 Posts
    271 Views
    jsulmJ
    @developer_96 Like documented https://doc.qt.io/qt-5/qstring.html#arg
  • Qt Desginer Widgets do not show up in a new window.

    Unsolved
    3
    0 Votes
    3 Posts
    231 Views
    Q
    @SGaist thanks. i will look into the QMessageBox::question first then
  • Converting binary data to String

    Unsolved qt5 serial port binary format
    12
    0 Votes
    12 Posts
    4k Views
    SGaistS
    And that binary contains just that ?
  • How to setData with QJsonObject to QListWidgetItem ?

    Solved
    4
    0 Votes
    4 Posts
    452 Views
    SPlattenS
    @jsulm , just solved this: QListWidgetItem* pobjItem = item(intRow); if ( pobjItem == nullptr ) { pobjItem = new QListWidgetItem(this); } if ( pobjItem != nullptr ) { QVariant varTemp(objRef), varVerify; pobjItem->setData(Qt::UserRole, varTemp); varVerify = pobjItem->data(Qt::UserRole); if ( varVerify.isValid() == true ) { QJsonValue objVerified(varVerify.toJsonValue()); qdbg() << "HACK!"; } pobjItem->setText(citrFound->toString()); }
  • Capturing the mouse inside a QOpenGLWidget

    Unsolved
    10
    0 Votes
    10 Posts
    4k Views
    mrjbomM
    @Chris-Kawa Okay, I implemented your idea with the zone and got rid of the jumps. But unfortunately all these manipulations with via QCursor:: setPos lead to twitching of the camera. I believe that due to the lack of the necessary APIs in Qt, it is not possible to implement mouse capture for my task. Thanks for the help.
  • QtreeWidget com menu

    Unsolved
    3
    0 Votes
    3 Posts
    229 Views
    B
    @jsulm ok
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Check internet connection in Linux

    Unsolved
    3
    0 Votes
    3 Posts
    900 Views
    gde23G
    This is more a philosophical than a programming question. From the technical point of view the internet is just a network. So how do you define "the internet". If you say there has to be some webpage available then per that definition there is no internet in countries where it its blocked but some local other net. If you need the information to know if you can contact a server then just directly try to contact it or what is the purpose of knowing if there is some internet around?
  • Query ":placeholder" does not work, but "?" does.

    Solved
    9
    0 Votes
    9 Posts
    678 Views
    KroMignonK
    @qtnoob420 said in Query ":placeholder" does not work, but "?" does.: i suppose there is nothing i can do about it... As you can see, it is a limitation of PostgreSQL itself. if(!q.prepare("UPDATE my_table SET column1 = :val1 WHERE column2 = :val2")) { qDebug() << "Prepare statement error:" << q.lastError().text(); }
  • QString to wchar_t* conversion

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    B
    @sogo It is toStdWString, not toStdString :)
  • QLabel hyperlink and text-decoration

    Unsolved
    8
    0 Votes
    8 Posts
    5k Views
    mrjjM
    @QtTester Can you show what you tried ?
  • WinDeployQt and VCINSTALLDIR PROBLEM

    Solved
    9
    1 Votes
    9 Posts
    4k Views
    D
    C:\Qt\Qt5.12.2\5.12.2\msvc2017_64\bin\windeployqt.exe -multimedia -multimediawidgets -opengl C:\Users\dz\Desktop\Testing\myAppApp.exe The correct form of the windeployment can be like this.
  • How can I make the child control display more area than the parent control?

    Unsolved
    4
    0 Votes
    4 Posts
    263 Views
    SGaistS
    Hi, @jsulm correctly noted, your child can't be bigger than your parent however you can use a QScrollArea to put more widgets in the child and then scroll through it to show the ones you want.
  • M16 Errors QML - QT Creator

    Unsolved
    2
    0 Votes
    2 Posts
    277 Views
    sierdzioS
    Qt Creator sometimes does not understand QML very well. If the app works when you run it, you can ignore the error.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • Stylesheet in QTreeWidget Change Arrow Images from .qrc

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    S
    Ok I solved the problem. I added a prefix to the images and now use :/arrows/xxxx.png and it works fine! Thanks for the help everyone!!
  • QTextFormat::FullWidthSelection but for multiple lines?

    Unsolved
    2
    0 Votes
    2 Posts
    381 Views
    T
    I think I figured out a solution. Could probably be a bit cleaner, but this seems to work ok so far. Basically am iterating through the block's lines and do full width selection for each. QTextCursor cursor = textCursor(); cursor.clearSelection(); cursor.movePosition(QTextCursor::StartOfBlock); for (int i = 0; i < cursor.block().lineCount(); i++) { QTextEdit::ExtraSelection selection; QColor lineColor = QColor(Qt::lightGray); selection.format.setBackground(lineColor); selection.format.setProperty(QTextFormat::FullWidthSelection, true); selection.cursor = cursor; extraSelectionList.append(selection); if (i + 1 < cursor.block().lineCount()) cursor.movePosition(QTextCursor::Down); }