Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.3k Topics 456.1k Posts
  • QPlainTextEdit and indentation of wordwrapped text?

    Unsolved
    4
    0 Votes
    4 Posts
    649 Views
    JonBJ
    @Trapezoid_Dreams Well theoretically you might be able to do anything at the paint level, but I think that would be totally the wrong approach for this issue.
  • Qt::WA_TranslucentBackground not work for QWidget

    Solved
    12
    0 Votes
    12 Posts
    2k Views
    T
    @Bonnie Yeah, I think Qt may not have exact flag/attribute I need. And what you say it's a useful way to solve my quesiton if I only need to manage a few objects. Without QLayout it will become a strenuous work in further. I think below code is a feasible way to solve similar question: bool QtGuiApplication1::eventFilter(QObject *watched, QEvent *event) { if (watched == m_pWidget && (event->type() == QEvent::MouseButtonPress || event->type() == QEvent::MouseButtonRelease || event->type() == QEvent::Wheel)) { if (m_pWebWidget->focusProxy()) { QCoreApplication::sendEvent(m_pWebWidget->focusProxy(), event); } } return false; } Thank you for your advice and i will use it.
  • Is it possible to Rotate Videos in Qt5.12 in Desktop App Cpp

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

    Unsolved
    2
    0 Votes
    2 Posts
    26 Views
  • ıt doesnt add list items into table widget

    Unsolved
    5
    0 Votes
    5 Posts
    565 Views
    jsulmJ
    @suslucoder Can you please explain how you want to put the elements from gpsList into your table? All elements in one row or something else? As @SGaist pointed out iterating over the same list in two nested loops does not make sense...
  • Define SqlDrivers for deploy. How?

    Unsolved
    2
    0 Votes
    2 Posts
    119 Views
    Christian EhrlicherC
    No, windeployqt has no such a switch, you have to remove the unused by yourself. But does this one file really matter?
  • How do I import a project including all the sub files ?

    Solved
    3
    0 Votes
    3 Posts
    173 Views
    C
    HI, I just opened the pro file for about the fifth time so I could answer your question. This time I clicked on Configure Project. I think I did that before. But this time all the files are there. So it looks like everything is good to go. And I see the other files listed in the pro file. Thank you for your quick reply..no pun intended.
  • 0 Votes
    2 Posts
    911 Views
    SGaistS
    Hi, The most "simple" is to downsample from 10 to 8 bit. Maybe OpenCV has better support for that kind of format and might be an alternative.
  • Introduction in Qwt

    qwt c++ plot begginer
    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Hi, @WLOrion said in Introduction in Qwt: I didn't know this behavior of the Qwt Classes. This is nothing Qwt specific, it's part of the C++ basics. As for tutorial, there's a nice online book that is in German but the author claims that online translator should give you a good enough result in your own language.
  • QSharedMemory access without lock()?

    Unsolved
    4
    0 Votes
    4 Posts
    459 Views
    Christian EhrlicherC
    @Taytoo said in QSharedMemory access without lock()?: That's why wondering whether osx api uses some underlying locking api? Look at the code, it's opensource.
  • How to match an int to predefined variable

    Unsolved
    4
    0 Votes
    4 Posts
    314 Views
    JonBJ
    @suslucoder It is not clear what you are trying to do here. I want to match my integer definitions to my predefines. "Match" in what sense? You have 6 variables. Does that mean each of those variables can take its own value, independent of whatever is in the others? In that case, it is not clear what the purpose of the #defines is? Especially when you write: int TM_AP_ID_PID; //it is 0 and i use it as an idex Is the value of TM_AP_ID_PID always 0? Then why do you have it in a variable? Purely at a guess, you should be considering one or both of these: Use a C++ enum. Create a 6-element array (or map) for your currently separate variables, so that you can address them via array[TM_something].
  • [Qt Designer] PyQt5 - why does the designer add "centralWidget"?

    Unsolved
    2
    0 Votes
    2 Posts
    263 Views
    jsulmJ
    @Vladi said in [Qt Designer] PyQt5 - why does the designer add "centralWidget"?: Why? What's the purpose of that thing? Because a QMainWindow has a central widget. This widget consumes the area between menu/tool bar and status bar. This widget is used as container/parent for all the widgets you put inside your main window. What is the problem with it?
  • This topic is deleted!

    Unsolved
    10
    0 Votes
    10 Posts
    89 Views
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • How to load QTreeView asynchrone.

    Unsolved
    6
    0 Votes
    6 Posts
    508 Views
    jsulmJ
    @developer_61 said in How to load QTreeView asynchrone.: how to use that thread? Start here: https://doc.qt.io/qt-5/thread-basics.html "is it possible to do that during this loading with for example an small gear?" yes
  • Cache Images in Qt. In-box. Is there?

    Solved
    7
    0 Votes
    7 Posts
    558 Views
    B
    @jsulm It means - not an option for me to be used. Thx to all. Will do my own solution. Issue closed.
  • 0 Votes
    4 Posts
    864 Views
    L
    @JKSH ,thanks,I find that this happens when debugging, not when publishing。
  • How to add datas in table widget with increasing the row number

    Unsolved qt5 tablewidget
    2
    0 Votes
    2 Posts
    289 Views
    jsulmJ
    @suslucoder said in How to add datas in table widget with increasing the row number: It should start to add from row 0 to the end of row count And what is the problem? Set row count via https://doc.qt.io/qt-5/qtablewidget.html#setRowCount and add your data...
  • Empty buffer when large Json content is downloaded using QNetworkAccessManager object

    Unsolved
    2
    0 Votes
    2 Posts
    237 Views
    J.HilkJ
    @Uday-More you're forcing synchronous behavior on an asynchronous API, thats your problem. Change it to proper event driven code and also connect to the various error signals of QNetworkAccessManager and QNetworkReply
  • Add video/animation/ gif to window and change upon completion

    Unsolved videos animation event
    2
    0 Votes
    2 Posts
    482 Views
    jsulmJ
    @arjun98 Did you check https://doc.qt.io/qt-5/qmediaplayer.html ? It also has signals you can use for your purpose.