Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • QJSEngine does not support JavaScript lambdas as expected

    Unsolved javascript qjsengine qjsvalue callback
    1
    0 Votes
    1 Posts
    380 Views
    No one has replied
  • How to propagate the wheelEvent to multiple widgets of my centralwidget

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    T
    @JonB In the code I provide in my previous message, the MyWidget seems to execute the code assiocated to the wheelevent, and then the event is propagated to the parent widget (the central widget is this case). And the central widget re-propagate the event to all its children (including the original widget). How to avoid this first process, the one before sending the event to the parent ?
  • My QFrame widget is not well center-aligned

    Unsolved
    2
    0 Votes
    2 Posts
    255 Views
    Axel SpoerlA
    @1XU7 The label's text is left-aligned by default. This line will fix the issue: lblTitle->setAlignment(Qt::AlignCenter);
  • erueur when use Qxlnt libray

    Unsolved
    11
    0 Votes
    11 Posts
    658 Views
    S
    I have use xlnt (which Qxlnt is based on) before. What I found is that when you enter an equation and then pull it over several cells xlnt is not able to open that file anymore. There is a fix which hasn't been released yet (last time I checked) which will not crash when you try to open the file, but will corrupt it if you write back to it. So, unless every cell has been entered individually (or imported), don't use Qxlnt/xlnt to work with Excel files. Or help improve the library.
  • Static library don't see image paths

    Solved
    10
    0 Votes
    10 Posts
    733 Views
    S
    @AndrzejB said in Static library don't see image paths: original icon scaled 100% in Gimp Again, do you use display scaling? Gimp might adjust what "100%" means based on display scaling.
  • QGLFormat class

    Solved
    3
    0 Votes
    3 Posts
    202 Views
    D
    @Christian-Ehrlicher Thank you christian. Yes. Now i included and found it works. its my mistake. thank you again. Regards, dan
  • Dialog closed automatically when swip/scroll insde Dialog Window.

    Unsolved
    3
    0 Votes
    3 Posts
    217 Views
    B
    @Pl45m4 Yes. Even our initial assumption was same. However we confirmed this by getting touch coordinates from touch driver. With our test we found that our touch coordinates are within the boundary of the dialog window.
  • Can't locate devices with QtBluetooth low energy

    Solved
    3
    0 Votes
    3 Posts
    329 Views
    S
    Hi @JonB, so I've tried the 40 second timeout, but the scan seems to finish after 13 seconds, no matter the timeout. Even if I put -1, 200, 1000 or 40000, it's always 13 seconds. My compiler is MinGW, but after changing it to MSVC (had to install visual basic build tools to get a working compiler), it works now! All the bluetooth devices I need have been found and the timeout works too. Thank you! Edit: My Qt version is 5.15.2
  • Stdin doesn't read

    Unsolved
    4
    0 Votes
    4 Posts
    389 Views
    Pl45m4P
    @s_milena__97 If you dont use any Qt GUI elements yet, you can add CONFIG += console to your zdravosvetee.pro file, go to your projects "Build and run" settings and check "Run in terminal" there.
  • Qt5.15.0 with Visual Studio 2017 - where is msvc2017_64

    Unsolved
    4
    0 Votes
    4 Posts
    4k Views
    Christian EhrlicherC
    @Go-Fish said in Qt5.15.0 with Visual Studio 2017 - where is msvc2017_64: They are not. There is no such thing as binary compatibility "with MSVS". Microsoft platform doesn't operate by that principle. They use Side-by-side installation meaning if you compiled a binary with another version of SxS library (identified by embedded hash), you have to provide distribution for them. Nice that someone registered here just to spread fud / showing that he doesn't know what binary compatibility means: https://learn.microsoft.com/en-us/cpp/porting/binary-compat-2015-2017?view=msvc-170
  • QMessageBox non blocking

    Unsolved
    12
    0 Votes
    12 Posts
    6k Views
    I
    Try using QApplication::processEvents() after show() and before the work starts. This solved the issue for me.
  • How to use additional syntax files?

    Solved
    1
    0 Votes
    1 Posts
    131 Views
    No one has replied
  • KsyntaxHighlighting::Definition and rules for tokens

    Unsolved kde
    2
    0 Votes
    2 Posts
    452 Views
    SGaistS
    Hi, rehighlightBlock belongs to QSyntaxHighlighter. Use the original repos, the clones are usually for people to do development before creating a merge request.
  • QListWidget expand to the height of the widgets inside like layout

    Locked Unsolved
    2
    0 Votes
    2 Posts
    390 Views
    SGaistS
    Hi, Please don't post the same question in multiple sub forum, one is enough. Duplicate Closing this one
  • QWidgte::setSizeIncrement() not have effect

    Solved
    6
    0 Votes
    6 Posts
    716 Views
    G
    @giusdbg In wayland there are various things that are complicated or impossible to fix, I decided for this trick int main(int argc, char *argv[]) { if (!qEnvironmentVariableIsSet ( "QT_QPA_PLATFORM" )) qputenv( "QT_QPA_PLATFORM", "xcb" ); If anyone cares about the code that was trying to handle the jerky resize manually this is it (it doesn't work badly, but it doesn't have stable behavior and throws an infinite resize->timer->resize event loop) qtResize.setSingleShot(true); connect(&qtResize, SIGNAL(timeout()), this, SLOT(resizeDone())); ........................ bool LMSensorsWidget::event(QEvent *event) { // qDebug() << "\033[91m" << "qDebug(): LMSensorsWidget::event event->type()" << event->type() <<"\033[0m"; switch (event->type()) { case QEvent::NonClientAreaMouseButtonRelease: // resize (size()); break; case QEvent::Resize: /* if (event->spontaneous()) return false; */ case QEvent::UpdateRequest: qtResize.stop(); qtResize.start(500); break; default: break; } return QWidget::event (event); } void LMSensorsWidget::resizeDone() { QSize qsResize, qsSnap, qsObj; QRect qrGeom; qsResize = size(); qsSnap.setWidth(int((qsResize.width() / 64.0) + 0.5) * 64.0); qsSnap.setHeight(int((qsResize.height() / 64.0) + 0.5) * 64.0); // if (qsSnap != qsResize) { resize(qsResize.width(), qsResize.height() -1); resize(qsSnap); } }
  • QTreeWidget gird lines

    Unsolved
    4
    0 Votes
    4 Posts
    699 Views
    G
    Thanks for all your help. Gary
  • 0 Votes
    2 Posts
    208 Views
    SGaistS
    Hi, Please use coding tags when posting code. Otherwise it's unreadable. Next, reduce your code to the bare minimum required to analyse your issue. Remove everything unrelated to your issue. Not many people will be interested in going through that much code with just an error message as entry point. One thing that is an issue I can see is that you are declaring your invokable function in the slot section of your class. Although related, they are two different things.
  • Why does it show me an error when trying to compile in static

    Unsolved
    4
    0 Votes
    4 Posts
    418 Views
    Axel SpoerlA
    @lincoln The issue occurs during configure and compilation doesn't even start. Could you please post the entire CMakeLists.txt as well as the configure output?
  • Can't upload app to QT Design Viewer: "QtQuick not installed"

    Unsolved
    3
    0 Votes
    3 Posts
    188 Views
    P
    @jsulm I'm sorry, I don't know. How do I check/install it if it isn't?
  • 0 Votes
    9 Posts
    1k Views
    J
    Announcing that this problem is solved. I am really appreciate and grateful to your suggestions and advice, after all the segment fault is no more occur. šŸ™šŸ». It troubles me for around a week.